package bhoost.jsi;

public class KeyEvent extends Event {
  public int keyCode;
  public int action;

  public KeyEvent() {
    this.eventType = Event.Type.key;
  }

  public int getKeyCode() {
    return keyCode;
  }

  public int getAction() {
    return action;
  }

  public KeyEvent clone() throws CloneNotSupportedException {
    KeyEvent event = new KeyEvent();
    event.keyCode = keyCode;
    event.action = action;
    return event;
//    return (KeyEvent)super.clone();
  }
}
